export const fvsConfig = {
    data() {
        return {
            fvsList:[],//视频列表
            fvsIdList:[],//视频id列表
            fvsTypeList:[
                {
                    id: 0,
                    name: "海康萤石"
                },
                {
                    id: 1,
                    name: "大华乐橙"
                },
            ],//视频类型列表
            fvsModal:false,//视频弹框
            fvsId:'',//视频id
        }
    },
    methods: {
        setFvsPlatform(){
            if(this.fvsId === ''){
                this.$Modal.warning({
                    title: "提示",
                    content: "请选择厂商类型"
                });
                return;
            }
            let obj = {
                platform : this.fvsId,
                appKey : '',
                appSecret : '',
            }
            this.fvsIdList.push(this.fvsId);
            this.fvsList.push(obj)
            this.fvsModal = false;
        },
        delFvsPlatform(index,list){
            list.splice(index,1);
            this.fvsList = list;
            this.fvsIdList.splice(index,1);
        }
    },
}
